FROM centos:7
ADD jdk-8u171-linux-x64.tar.gz  /opt
ENV PATH=$PATH:/opt/jdk1.8.0_171/bin
WORKDIR /opt
COPY app.jar .
ENTRYPOINT ["java" ,"-jar" , "/opt/app.jar"]
